import request from '@/utils/request';

//报表基础数据接口
export function boardBasic(data: any) {
    return request({
        url: '/scrm-api/console/media/board/basic',
        method: 'POST',
        data
    });
}

//折线图接口
export function basicChart(data: any) {
    return request({
        url: '/scrm-api/console/media/board/basic-chart',
        method: 'POST',
        data
    });
}

//浏览时长占比数据
export function boardBrowse(data: any) {
    return request({
        url: '/scrm-api/console/media/board/browse',
        method: 'POST',
        data
    });
}

//标签占比
export function boardTag(data: any) {
    return request({
        url: '/scrm-api/console/media/board/cust/tag',
        method: 'POST',
        data
    });
}

//TOP10接口
export function contentTop(data: any) {
    return request({
        url: '/scrm-api/console/media/board/content/top',
        method: 'POST',
        data
    });
}

//详细数据
export function dataInfo(data: any) {
    return request({
        url: '/scrm-api/console/media/board/info/data',
        method: 'POST',
        data
    });
}

//导出详细数据
export function exportDatas(data: any) {
    return request({
        url: '/scrm-api/console/media/board/export/info/data',
        method: 'POST',
        data
    });
}

//客户分享TOP10
export function custTop(data: any) {
    return request({
        url: '/scrm-api/console/media/board/cust/share/top10',
        method: 'POST',
        data
    });
}

//员工分享TOP10
export function staffTop(data: any) {
    return request({
        url: '/scrm-api/console/media/board/staff/share/top10',
        method: 'POST',
        data
    });
}
//----------------------------------------------------------朋友圈素材相关接口-----------------------------------
//朋友圈基础数据
export function momentBasic(data: any) {
    return request({
        url: '/scrm-api/console/media/board/moment/basic',
        method: 'POST',
        data
    });
}

//朋友圈点赞和评论占比数据
export function monentBrowse(data: any) {
    return request({
        url: '/scrm-api/console/media/board/moment/browse',
        method: 'POST',
        data
    });
}

//朋友圈标签占比
export function monmentTag(data: any) {
    return request({
        url: '/scrm-api/console/media/board/moment/cust/tag',
        method: 'POST',
        data
    });
}

//朋友圈折线图
export function momentBasicChart(data: any) {
    return request({
        url: '/scrm-api/console/media/board/moment/basic-chart',
        method: 'POST',
        data
    });
}

//朋友圈Top10
export function momentTop(data: any) {
    return request({
        url: '/scrm-api/console/media/board/moment/content/top',
        method: 'POST',
        data
    });
}

//朋友圈详细数据
export function monmentDatas(data: any) {
    return request({
        url: '/scrm-api/console/media/board/moment/info/data',
        method: 'POST',
        data
    });
}

//朋友圈导出详细数据
export function exportMonmentData(data: any) {
    return request({
        url: '/scrm-api/console/media/board/moment/export/info/data',
        method: 'get',
        params: data
    });
}

//获取统计时间
export function getTime(data: any, noNeedLoading = false) {
    return request({
        url: '/scrm-api/console/media/board/census',
        method: 'get',
        params: data,
        noNeedLoading
    });
}
